---
page_title: "cloudflare_api_shield_operation_schema_validation_settings Resource - Cloudflare"
subcategory: ""
description: |-
  Provides a resource to manage operation-level settings in API Shield Schema Validation 2.0.
---

# cloudflare_api_shield_operation_schema_validation_settings (Resource)

Provides a resource to manage operation-level settings in API Shield Schema Validation 2.0.

## Example Usage

```terraform
resource "cloudflare_api_shield_operation" "example" {
  zone_id  = "0da42c8d2132a9ddaf714f9e7c920711"
  method   = "GET"
  host     = "api.example.com"
  endpoint = "/path"
}

resource "cloudflare_api_shield_operation_schema_validation_settings" "example" {
  zone_id           = "0da42c8d2132a9ddaf714f9e7c920711"
  operation_id      = cloudflare_api_shield_operation.example.id
  mitigation_action = "block"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `operation_id` (String) Operation ID these settings should apply to. **Modifying this attribute will force creation of a new resource.**
- `zone_id` (String) The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**

### Optional

- `mitigation_action` (String) The mitigation action to apply to this operation.

### Read-Only

- `id` (String) The ID of this resource.


